#ifndef DDSPORT_H
#define DDSPORT_H
#include <QDataStream>
#include "IPort.h"
#include "Socket/xsocket.hpp"
#include "devlibgloabal.h"

class DEVLIB_EXPORT DdsPort : public QObject, public IPort
{
    Q_OBJECT

public:
    DdsPort();
    ~DdsPort();

public:
    bool open(QString port, QStringList args) Q_DECL_OVERRIDE;
    bool reOpen() Q_DECL_OVERRIDE;
    int read(unsigned char *buf, int len, int ms) Q_DECL_OVERRIDE;
    int write(unsigned char *buf, int len, int ms) Q_DECL_OVERRIDE;
    bool close() Q_DECL_OVERRIDE;
    TPortType getPortType() Q_DECL_OVERRIDE;

private:
    int port;
    QString ip;
};

#endif // DDSPORT_H
